if (ENABLE_PORTING_TO_C)
	add_executable("CCmdParser_HMAKER" "CCmdParser.h.cpp")
	add_custom_command("TARGET" "CCmdParser_HMAKER" "POST_BUILD" "COMMAND" "CCmdParser_HMAKER" ">" "CCmdParser.h")
	install("FILES" "${CMAKE_BINARY_DIR}/porting/CCmdParser.h" "DESTINATION" "include")

	add_library("CCmdParser_STATIC" "STATIC" "CCmdParser.cpp")
	set_target_properties("CCmdParser_STATIC" "PROPERTIES" "OUTPUT_NAME" "CCmdParser")
	add_dependencies("CCmdParser_STATIC" "CmdParser_STATIC")
	target_link_libraries("CCmdParser_STATIC" "CmdParser_STATIC")
	install("TARGETS" "CCmdParser_STATIC" "DESTINATION" "lib")

	add_library("CCmdParser_SHARED" "SHARED" "CCmdParser.cpp")
	set_target_properties("CCmdParser_SHARED" "PROPERTIES" "OUTPUT_NAME" "CCmdParser")
	add_dependencies("CCmdParser_SHARED" "CmdParser_SHARED")
	target_link_libraries("CCmdParser_SHARED" "CmdParser_SHARED")
	install("TARGETS" "CCmdParser_SHARED" "DESTINATION" "lib")
endif ()
